package com.bqtv.sport.ui.mine

import android.content.Context
import android.content.Intent
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import com.bqtv.sport.adapter.PointsDetailAdapter
import com.bqtv.sport.app.AppActivity
import com.bqtv.sport.databinding.ActivityPointsDetailBinding

class PointsDetailActivity : AppActivity<ActivityPointsDetailBinding>() {
    private lateinit var detailAdapter: PointsDetailAdapter

    companion object {
        fun start(context: Context) {
            val intent = Intent(context, PointsDetailActivity::class.java)
            context.startActivity(intent)
        }
    }

    override fun getViewBinding() = ActivityPointsDetailBinding.inflate(layoutInflater)

    override fun initView() {
        binding.rcvDetail.layoutManager = LinearLayoutManager(this)
        detailAdapter = PointsDetailAdapter()
        binding.rcvDetail.adapter = detailAdapter
    }

    override fun initData() {
        detailAdapter.submitList(arrayListOf("1", "2", "3", "4", "5", "6", "7", "8", "9", "10"))

        initListener()
    }

    private fun initListener() {

    }

    override fun onClick(view: View) {
        super.onClick(view)
        when (view) {

        }
    }
}